<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <style>
        /* 整体页面布局 */
        body {
            margin: 0;
            padding: 0;
            display: flex;
            height: 100vh;
        }

        /* 左边图片部分 */
        .left-section {
            flex: 1;
            background-image: url('https://picsum.photos/536/354'); /* ../images/loginImg.png  */
            background-size: cover;
            background-position: center;
        }

        /* 右边登录框部分 */
        .right-section {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* 登录框样式 */
        .login-box {
            background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }

        /* 表单样式 */
        form {
            display: flex;
            flex-direction: column;
        }

        form label {
            margin-top: 10px;
        }

        form input[type="text"],
        form input[type="password"] {
            margin-top: 5px;
            margin-bottom: 15px;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        form input[type="submit"] {
            padding: 10px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div class="left-section"></div>
<div class="right-section">
    <div class="login-box">
        <form role="form" action="/user/loginIn" method="post">
            <label for="name">账号：</label>
            <input type="text" id="name" name="name">
            <label for="password">密码：</label>
            <input type="password" id="password" name="password">
            <input type="submit" id="login" value="login">
        </form>
    </div>
</div>
</body>
</html>